<?
	$sql = mysql_query("SELECT * FROM `".$setupdata['table_prefix']."form_post_catalog`");
	if ($sql) {
		$info = mysql_fetch_array($sql, MYSQL_ASSOC);
		if (!isset($info['block_id'])){
			$sql = mysql_query("
				ALTER TABLE `".$setupdata['table_prefix']."form_post_catalog` ADD `block_id` INT NOT NULL
			");
		}
	}
	
	$sql = @mysql_query("
		DELETE FROM `".$setupdata['table_prefix']."discribe` WHERE `type`='block_form';
		INSERT INTO `".$setupdata['table_prefix']."discribe` VALUES ('', 'block_form', 'block_form_up', 'docum', 0, '', '');
		INSERT INTO `".$setupdata['table_prefix']."discribe` VALUES ('', 'block_form', 'block_form_to', 'text', 1, '', '');
		INSERT INTO `".$setupdata['table_prefix']."discribe` VALUES ('', 'block_form', 'block_form_subj', 'text', 2, '', '');
		INSERT INTO `".$setupdata['table_prefix']."discribe` VALUES ('', 'block_form', 'block_form_data', 'form', 3, '', '');
		INSERT INTO `".$setupdata['table_prefix']."discribe` VALUES ('', 'block_form', 'block_form_dowm', 'docum', 4, '', '');
		INSERT INTO `".$setupdata['table_prefix']."discribe` VALUES ('', 'block_form', 'block_form_ok', 'smalldocum', 5, '', '');
	");
?>